package com.lhh.adminlte.service;

import com.lhh.adminlte.entity.*;

import java.util.List;

/**
 * @Auther: hanhui.liu
 * @Date: 2018/5/23 15:30
 * @Description:
 */
public interface UserService {

    List<Role> findRolesByUserId(int userId);

    List<Menu> findMenusByRoleId(int roleId, MenuType menuType);

    List<Menu> findChildrenByParentId(int parentId, MenuType menuType);

    Menu findParentByChidId(int childId, MenuType menuType);

    List<User> selectUsers(String nickName, String loginName, Integer status, int displayStart, int displayLength);

    long countUser(String nickName, String loginName, Integer status);
}
